package com.inspur.edp.rule.dsl.core.function;


public class ObjectMethodNameUtil {

    public static String getGetName(String fieldName) {
        return "get" + firstCharToUpper(fieldName);
    }

    public static String getGetNameForBool(String fieldName) {
        return "is" + firstCharToUpper(fieldName);
    }

    public static String getSetName(String fieldName) {
        return "set" + firstCharToUpper(fieldName);
    }

    public static String firstCharToUpper(String fieldName) {
        String firstC = fieldName.substring(0, 1);
        return firstC.toUpperCase() + fieldName.substring(1);
    }

}
